package com.zh.controller;

import com.zh.service.TestEasyExcelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Description: 测试easycel
 * @ClassName TestEasyExcelController
 * @date: 2021.01.20 17:38
 * @Author: zhanghang
 */
@RestController
public class TestEasyExcelController {

    @Autowired
    private TestEasyExcelService testEasyExcelService;

    @GetMapping("/export")
    public Boolean exportExcel(HttpServletRequest request, HttpServletResponse response){
        return testEasyExcelService.exportExcel(request,response);
    }
}
